import request from "@/request/api";

//基本参数组接口
//1.基本参数查询接口
export function baseParamList(data) {
  return request({
    url: "/eam-service-standard/typeGroup/list",
    method: "get",
    params: data,
  });
}

export function presetParamList(data) {
  return request({
    url: "/eam-service-standard/typeGroup/listDefault",
    method: "get",
    params: data,
  });
}
//2、基本参数增加或修改节点接口
export function baseParamAddOrEdit(data) {
  return request({
    url: "/eam-service-standard/typeGroup",
    method: "post",
    data: data,
  });
}
//2、基本参数详情查询接口
export function baseParamDetail(data) {
  return request({
    url: "/eam-service-standard/typeGroup",
    method: "get",
    params: data,
  });
}
//3、基本参数删除节点接口
export function baseParamDelete(data) {
  return request({
    url: "/eam-service-standard/typeGroup",
    method: "delete",
    params: data,
  });
}

//分类标准树
export function classStandardTree(data) {
  return request({
    url: "/eam-service-standard/deviceClassify/tree",
    method: "get",
    params: data,
  });
}
//分类标准详情
export function classStandardDetail(data) {
  return request({
    url: "/eam-service-standard/deviceClassify/detail",
    method: "get",
    params: data,
  });
}
//拖拽树
export function classStandardTreeDrag(data) {
  return request({
    url: "/eam-service-standard/deviceClassify/drag",
    method: "put",
    params: data,
  });
}
//分类标准新增或修改接口
export function classStandardAddOrEdit(data) {
  return request({
    url: "/eam-service-standard/deviceClassify",
    method: "post",
    data: data,
  });
}
//分类标准删除接口
export function classStandardDelete(data) {
  return request({
    url: "/eam-service-standard/deviceClassify",
    method: "delete",
    params: data,
  });
}

//分类标准删除接口
export function importDeviceClassify(formData) {
  return request({
    url: "/eam-service-standard/deviceClassify/import",
    method: "post",
    data: formData,
  });
}
